function submit() {
	/*var a1 = $("#province1").val();
	var b1 = $("#city1").val();
	var c1 = $("#town1").val();
	var d1 = $("#detailedAddress").val();
	var a2 = $("#province2").val();
	var b2 = $("#city2").val();
	var c2 = $("#town2").val();
	var d2 = $("#applydetailAddress").val();
	var a3 = $("#province3").val();
	var b3 = $("#city3").val();
	var c3 = $("#town3").val();
	var d3 = $("#signdetailAddress").val();
	var a4 = $("#province4").val();
	var b4 = $("#city4").val();
	var c4 = $("#town4").val();
	var d4 = $("#insureddetailAddress").val();
	var carAddresspp = a1 + b1 + c1 + d1;
	var applyAddresspp = a2 + b2 + c2 + d2;
	var signAddresspp = a3 + b3 + c3 + d3;
	var insuredAddresspp = a4 + b4 + c4 + d4;
	$("#carAddress").val(carAddresspp);
	$("#applyAddress").val(applyAddresspp);
	$("#insureddetailAddress").val(insuredAddresspp);
	$("#signAddress").val(signAddresspp);*/
	$("#addform").submit();
}
function toSubmit() {
	/*// 验证输入框格式
	// 车主姓名
	if (isEmptyNo($('#caName').val())) {
		$("#caName").attr("class", "caName");
		$("#caName").attr("placeholder", "姓名不能为空");
		return false;
	}
	var reg = /^[\u4E00-\u9FA5]+$/;
	if (!reg.test($("#caName").val())) {
		$("#caName").val("");
		$("#caName").attr("class", "caName");
		$("#caName").attr("placeholder", "请输入中文姓名");
		return false;
	}
	if ($("#caName").val().length < 2) {
		$("#caName").val("");
		$("#caName").attr("class", "caName");
		$("#caName").attr("placeholder", "姓名至少大于一个汉字");
		return false;
	}
	// 车主手机号码
	if (isEmptyNo($("#telephone").val())) {
		$("#telephone").attr("class", "telephone");
		$("#telephone").attr("placeholder", "手机号不能为空");
	}
	var reg = /(13\d|14[57]|15[^4,\D]|17[123456789]|18\d)\d{8}|17[123456789]\d{8}/;
	if (!reg.test($("#telephone").val()) && $("#telephone").val() != ""
			|| $("#telephone").val().length != 11) {
		$("#telephone").val("");
		$("#telephone").attr("class", "telephone");
		$("#telephone").attr("placeholder", "手机号格式不正确!!");
		return false;
	}
	// //车主身份证号
	var idCard = $('#carCard').val();
	if (isEmptyNo(idCard)) {
		$("#carCard").val("");
		$("#carCard").attr("class", "carCard");
		$("#carCard").attr("placeholder", "身份证号码不能为空");
		return false;
	}
	// 15位和18位身份证号码的正则表达式
	var regIdCard = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
	if (regIdCard.test(idCard)) {
	} else {
		$("#carCard").val("");
		$("#carCard").attr("class", "carCard");
		$("#carCard").attr("placeholder", "身份证格式不正确!");
		return false;
	}
	// 车主邮箱
	if (isEmptyNo($("#carEmail").val())) {
		$("#carEmail").attr("class", "carEmail");
		$("#carEmail").attr("placeholder", "邮箱不能为空");
		return false;
	}
	var regEmail = /^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+(\.[a-zA-Z]{2,3})+$/;
	if (!regEmail.test($("#carEmail").val())) {
		$("#carEmail").val("");
		$("#carEmail").attr("class", "telephone");
		$("#carEmail").attr("placeholder", "邮箱格式不正确!!");
		return false;
	}
	// 车主常用地址
	if (isEmptyNo($("#carissuer").val())) {
		$("#carissuer").attr("class", "carissuer");
		$("#carissuer").attr("placeholder", "地址不能为空");
	}
	// 投保人姓名
	if (isEmptyNo($('#applyName').val())) {
		$("#applyName").attr("class", "applyName");
		$("#applyName").attr("placeholder", "姓名不能为空");
		return false;
	}
	var reg = /^[\u4E00-\u9FA5]+$/;
	if (!reg.test($("#applyName").val())) {
		$("#applyName").val("");
		$("#applyName").attr("class", "applyName");
		$("#applyName").attr("placeholder", "请输入中文姓名");
		return false;
	}
	if ($("#applyName").val().length < 2) {
		$("#applyName").val("");
		$("#applyName").attr("class", "applyName");
		$("#applyName").attr("placeholder", "姓名至少大于一个汉字");
		return false;
	}
	// 投保人手机号
	if (isEmptyNo($("#appliTelephone").val())) {
		$("#appliTelephone").attr("class", "appliTelephone");
		$("#appliTelephone").attr("placeholder", "手机号不能为空");
	}
	var reg = /(13\d|14[57]|15[^4,\D]|17[123456789]|18\d)\d{8}|17[123456789]\d{8}/;
	if (!reg.test($("#appliTelephone").val())
			&& $("#appliTelephone").val() != ""
			|| $("#appliTelephone").val().length != 11) {
		$("#appliTelephone").val("");
		$("#appliTelephone").attr("class", "appliTelephone");
		$("#appliTelephone").attr("placeholder", "手机号格式不正确!!");
		return false;
	}
	// 投保人身份证号
	var idCard1 = $('#applyCard').val();
	if (isEmptyNo(idCard1)) {
		$("#applyCard").val("");
		$("#applyCard").attr("class", "applyCard");
		$("#applyCard").attr("placeholder", "身份证号码不能为空");
		return false;
	}
	if (regIdCard.test(idCard1)) {

	} else {
		$("#applyCard").val("");
		$("#applyCard").attr("class", "carCard");
		$("#applyCard").attr("placeholder", "身份证格式不正确!");
		return false;
	}
	// 投保人邮箱
	if (isEmptyNo($("#applyEmail").val())) {
		$("#applyEmail").attr("class", "applyEmail");
		$("#applyEmail").attr("placeholder", "邮箱不能为空");
	}
	if (!regEmail.test($("#applyEmail").val())) {
		$("#applyEmail").val("");
		$("#applyEmail").attr("class", "applyEmail");
		$("#applyEmail").attr("placeholder", "邮箱格式不正确!!");
		return false;
	}
	// 投保人常用地址
	if (isEmptyNo($("#applyissuer").val())) {
		$("#applyissuer").attr("class", "applyissuer");
		$("#applyissuer").attr("placeholder", "地址不能为空");
	}
	// 被保人姓名
	if (isEmptyNo($('#insuredName').val())) {
		$("#insuredName").attr("class", "insuredName");
		$("#insuredName").attr("placeholder", "姓名不能为空");
		return false;
	}
	var reg = /^[\u4E00-\u9FA5]+$/;
	if (!reg.test($("#insuredName").val())) {
		$("#insuredName").val("");
		$("#insuredName").attr("class", "insuredName");
		$("#insuredName").attr("placeholder", "请输入中文姓名");
		return false;
	}
	if ($("#insuredName").val().length < 2) {
		$("#insuredName").val("");
		$("#insuredName").attr("class", "insuredName");
		$("#insuredName").attr("placeholder", "姓名至少大于一个汉字");
		return false;
	}
	// 被保人手机号
	if (isEmptyNo($("#insuredTelephone").val())) {
		$("#insuredTelephone").attr("class", "insuredTelephone");
		$("#insuredTelephone").attr("placeholder", "手机号不能为空");
	}
	var reg = /(13\d|14[57]|15[^4,\D]|17[123456789]|18\d)\d{8}|17[123456789]\d{8}/;
	if (!reg.test($("#insuredTelephone").val())
			&& $("#insuredTelephone").val() != ""
			|| $("#insuredTelephone").val().length != 11) {
		$("#insuredTelephone").val("");
		$("#insuredTelephone").attr("class", "insuredTelephone");
		$("#insuredTelephone").attr("placeholder", "手机号格式不正确!!");
		return false;
	}
	// 被保人身份证号
	var idCard2 = $('#insuredIdNo').val();
	if (isEmptyNo(idCard2)) {
		$("#insuredIdNo").val("");
		$("#insuredIdNo").attr("class", "insuredIdNo");
		$("#insuredIdNo").attr("placeholder", "身份证号码不能为空");
		return false;
	}
	if (regIdCard.test(idCard2)) {

	} else {
		$("#insuredIdNo").val("");
		$("#insuredIdNo").attr("class", "carCard");
		$("#insuredIdNo").attr("placeholder", "身份证格式不正确!");
		return false;
	}
	// 被保人邮箱
	if (isEmptyNo($("#insuredEmail").val())) {
		$("#insuredEmail").attr("class", "insuredEmail");
		$("#insuredEmail").attr("placeholder", "邮箱不能为空");
	}
	if (!regEmail.test($("#insuredEmail").val())) {
		$("#insuredEmail").val("");
		$("#insuredEmail").attr("class", "insuredEmail");
		$("#insuredEmail").attr("placeholder", "邮箱格式不正确!!");
		return false;
	}
	// 被保人常用地址
	if (isEmptyNo($("#insureissuer").val())) {
		$("#insuredissuer").attr("class", "insuredissuer");
		$("#insuredissuer").attr("placeholder", "地址不能为空");
	}
	// 保单签收人
	// checkSignName();
	if (isEmptyNo($('#signName').val())) {
		$("#signName").attr("class", "signName");
		$("#signName").attr("placeholder", "姓名不能为空");
		return false;
	}
	var reg = /^[\u4E00-\u9FA5]+$/;
	if (!reg.test($("#signName").val())) {
		$("#signName").val("");
		$("#signName").attr("class", "signName");
		$("#signName").attr("placeholder", "请输入中文姓名");
		return false;
	}
	if ($("#signName").val().length < 2) {
		$("#signName").val("");
		$("#signName").attr("class", "signName");
		$("#signName").attr("placeholder", "姓名至少大于一个汉字");
		return false;
	}
	// 保单签收人手机号
	if (isEmptyNo($("#signPhone").val())) {
		$("#signPhone").attr("class", "signPhone");
		$("#signPhone").attr("placeholder", "手机号不能为空");
	}
	var reg = /(13\d|14[57]|15[^4,\D]|17[123456789]|18\d)\d{8}|17[123456789]\d{8}/;
	if (!reg.test($("#signPhone").val()) && $("#signPhone").val() != ""
			|| $("#signPhone").val().length != 11) {
		$("#signPhone").val("");
		$("#signPhone").attr("class", "signPhone");
		$("#signPhone").attr("placeholder", "手机号格式不正确!!");
		return false;
	}
	// 保单签收人收件日期
	if (isEmptyNo($("#reciDate").val())) {
		$("#reciDate").attr("class", "reciDate");
		$("#reciDate").attr("placeholder", "收件日期不能为空");
	}
	// 保单签收人常用地址
	if (isEmptyNo($("#signAddress").val())) {
		$("#signAddress").attr("class", "signAddress");
		$("#signAddress").attr("placeholder", "地址不能为空");
	}*/
	submit();
}
$(function() {
	var t = $("#airline");
	if (t.val() == "") {
		t.focus();
	}
});
// 非空
/*function isEmptyNo(empty) {
	if (empty.trim().length < 1) {
		return true;
	} else {
		return false;
	}
}
*/